﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility;

public partial class System_BidProject : System.Web.UI.MasterPage
{
    public int prid;
    public string DownUrl, username;

    protected void Page_Load(object sender, EventArgs e)
    {
        //MsgBox.Aert_history("此功能暂时还没有开通", -1);
        //return;
        HZ.MBSM.Model.Account _Account = (HZ.MBSM.Model.Account)Session["Account"];
        string connectkey = System.Configuration.ConfigurationManager.AppSettings["connectkey"];
        HZ.SinglePointLogin.RedirectHelper rh = new HZ.SinglePointLogin.RedirectHelper();
        username = rh.EncryptUrlString(_Account.AccountName, connectkey);
        prid = SysFun.ToInt(Request.QueryString["projectid"]);
        string sql;
        Db db = new Db();
        System.Data.IDataReader dr;
        DownUrl = "";
        sql = "select DownUrl from project_bulletin where projectid=" + prid;
        dr = db.DataReader(sql);
        while (dr.Read())
        {
            DownUrl = SysFun.ToTrim(dr["DownUrl"].ToString());
        }
        db.Close();
        dr.Close();
        dr.Dispose();
        if ((SysFun.ToTrim(DownUrl)).Length == 0)
        {
            DownUrl = "#";
        }
        else
        {
            DownUrl = "../UploadFile/" + DownUrl;
        }
       
    }
}